<form onsubmit="return false;" action="{:request()->url()}" data-auto="true" method="post" class='layui-form layui-card' autocomplete="off">

    <div class="layui-card-body">
        <div class="layui-row margin-bottom-15">
            <label class="layui-col-xs4 think-form-label">手机号(需以+86开头)</label>
            <label class="layui-col-xs8">
                <input name="phone" required value='{$vo.phone|default=""}' placeholder="请输入手机号" class="layui-input">
            </label>
        </div>
        <div class="layui-row margin-bottom-15">
            <label class="layui-col-xs4 think-form-label">信息内容</label>
            <label class="layui-col-xs8">
                <input name="msg" value='{$vo.msg|default=""}' placeholder="请输入信息内容" class="layui-input">
            </label>
        </div>
        <div class="layui-row margin-bottom-15">
            <label class="layui-col-xs4 think-form-label">验证码</label>
            <label class="layui-col-xs8">
                <input name="code" required value='{$vo.code|default=""}' placeholder="请输入验证码" class="layui-input">
            </label>
        </div>
    </div>

    <div class="hr-line-dashed"></div>
    <div class="layui-form-item text-center">
        {notempty name='vo.id'}<input type='hidden' value='{$vo.id}' name='id'>{/notempty}
        <button class="layui-btn" type='submit'>保存数据</button>
        <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消编辑吗？" data-close>取消编辑</button>
    </div>
</form>
{block name='script'}
<script>
    window.form.render();
</script>
{/block}
